﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;

namespace ProductManageSystem.Products
{
    public class Product : FullAuditedAggregateRoot<Guid>
    {
        public Categories.Category Category { get; set; }
        public Guid CategoryId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [MaxLength(ProductConsts.MaxNameLength)]
        public string Name { get; set; }
        public decimal? Price { get; set; }
        public bool IsFreeCargo { get; set; }
        public string ReleaseDate { get; set; }
        public ProductStockState StockState { get; set; }
    }
}
